export default {
  height:'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "主键id",
      prop: "id",
      type: "input",
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    {
      label: "规格名称",
      prop: "name",
      type: "input",
      search: true,
      rules: [{
        required: true,
        message: "请输入规格名称",
        trigger: "blur"
      }],
    },
    {
      label: "规格值",
      prop: "value",
      type: "select",
      multiple: true,
      allowCreate: true,
      placeholder: "请输入规格值",
      filterable: true,
      defaultFirstOption: true,
      rules: [{
        required: true,
        message: "请输入规格值",
        trigger: "blur"
      }],
      formatter:function (row,value,label,column) {
        return row.value;
      }
    },
    {
      label: "所属分类",
      prop: "categoryId",
      type: "tree",
      dicData: [],
      props: {
        label: 'title'
      },
      rules: [{
        required: true,
        message: "请输入所属分类",
        trigger: "blur"
      }],
    },
    {
      label: "状态",
      prop: "status",
      type: "select",
      dicUrl: "/blade-system/dict/dictionary?code=status",
      dataType: "number",
      props: {
        label: "dictValue",
        value: "dictKey"
      },
      search: true,
      rules: [{
        required: true,
        message: "请输入状态",
        trigger: "blur"
      }],
    }
  ]
}
